import { Guard } from '../../constants/guard';

export default [
  {
    path: '/user',
    name: 'user',
    meta: { title: '用户管理', svg: 'user', layout: true, guardList: [Guard.UserView, Guard.UserManage] },
    redirect: '/user/list'
  },
  {
    path: '/user/list',
    name: 'userList',
    meta: {
      title: '用户列表',
      svg: 'user-list',
      layout: true,
      parentMenu: 'user',
      guardList: [Guard.UserView, Guard.UserManage]
    },
    component: () => import('../../views/user/list/index.vue')
  },
  {
    path: '/user/userActivityLog/list',
    name: 'userActivityLogList',
    meta: {
      title: '用户活动日志',
      svg: 'log',
      layout: true,
      parentMenu: 'user',
      guardList: [Guard.UserActivityLogView, Guard.UserActivityLogManage]
    },
    component: () => import('../../views/settings/userActivityLog/index.vue')
  },
  {
    path: '/user/noSelectedRole',
    name: 'noSelectedRoleUserList',
    meta: { title: '用户列表', svg: 'user', layout: true, hidden: true, guardList: [Guard.UserView, Guard.UserManage] },
    component: () => import('../../views/user/noSelectedRoleList/index.vue')
  },
  {
    path: '/user/login',
    name: 'userLogin',
    meta: { title: '用户登录', noCache: true },
    component: () => import('../../views/user/login/index.vue')
  },
  {
    path: '/user/jobSelect',
    name: 'userJobSelect',
    meta: { title: '选择岗位', noCache: true },
    component: () => import('../../views/user/job/index.vue')
  }
];
